﻿/***************************************************/
/*** file:IHanleServer.cs                        ***/
/*** date:2010-08-07                             ***/
/*** author:huas                                 ***/
/*** function:implement Logic common interface   ***/
/***************************************************/




using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IM.Common
{
    public interface IHanleServer
    {
        int OnReceiveFromClient(byte[] bData, int nBeginIndex, UInt32 nDataLen);
        UInt32 GetPackageLen(byte[] szData, int nOffset, uint nLen);
        void SetHandleSink(IHanleSink iSink);
    
    }

    public interface IHanleSink
    {
        int OnSendToClient(byte[] bData, int nDataLen, ref NetHeader header);
    }
}
